#include <iostream>
using namespace std;

double func(double x, int n)
{
	if(n == 1)
		return x / (1 + x);
	return x / (n + func(x, n - 1));
}

int main()
{
	double x;
	int n;
	cin >> x >> n;
	printf("%.2lf\n", func(x, n));
	return 0;
}
